<div class="modal" ui-if="addcourseModal" ui-state='addcourseModal'>
  <div class="modal-backdrop in"></div>
  <div class="modal-dialog my-modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">添加课程</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <div class="input-group">
            <div class="input-group-addon">编号</div>
            <input type="text" class="form-control" name="courseid" required ng-model="courseid" placeholder="课程编号">
          </div>
        </div>
        <div class="form-group">
          <div class="row">
            <button ui-turn-off="addcourseModal" class="btn btn-default col-xs-offset-1 col-xs-5" ng-click="courseid = ''">取消</button>
            <button ui-turn-off="addcourseModal" ng-click="addCourse()" class="btn btn-primary col-xs-5" ng-disabled="!courseid">确定</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>